package com.lanswon.qzsmk.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.lanswon.qzsmk.model.Certificate;


public interface CertificateMapper {
	
	/**
	 * 获取所有身份证件类型
	 * @return
	 */
	List<Certificate> queryAllCertificates();
	
	/**
	 * 根据证件类型代码查询证件定义
	 * @param code
	 * @return
	 */
	Certificate queryCertificateByCode(String code);
	
	/**
	 * 根据证件类型名称代码查询证件定义
	 * @param code
	 * @return
	 */
	Certificate queryCertificateByName(String name);
}